<!-- CREATED FOR A TOOL - DON'T EDIT!! -->

<templates>

	<types>
		<type id="System.String">string</type>
		<type id="System.Int16">short</type>
		<type id="System.Int32">int</type>
		<type id="System.Int64">long</type>
		<type id="System.Double">double</type>
		<type id="System.Single">float</type>
		<type id="System.Decimal">decimal</type>
		<type id="System.Boolean">bool</type>
		<type id="System.DateTime">DateTime</type>
		<type id="System.Byte[]">Blob</type>
		<type id="System.Guid">Guid</type>
	</types>

  <staticfindby>
    <![CDATA[
<t><t>/// <summary>
<t><t>/// Returns {0} filtered by key.
<t><t>/// </summary>
{6}<t><t>public static {1} {2}({3})
<t><t>{4}
<t><t><t>// Build the query.
{8}

<t><t><t>// Create an object query and specify the query.
<t><t><t>ObjectQuery<{0}> oQuery = new ObjectQuery<{0}>(query{7});

<t><t><t>return {9}.Get{10}(oQuery);
<t><t>{5}
]]>
  </staticfindby>

  <staticseacher>
  <![CDATA[#region Developer's comment header
/* {0}.cs
 * 
 * author:    {1}
 * copyright: {2}
 * 
 * history:   {3}, {1}: Created.
 *
 */
#endregion
#region Using directives

using System;
using System.Collections.Generic;
using System.Text;
using Chili.Opf3;
using Chili.Opf3.Query;

{10}
#endregion

namespace {4}
{5}
<t>/// <summary>
<t>/// Searcher object for the "{6}" persistent.
<t>/// </summary>
<t>public static class {0}
<t>{5}
<t><t>/// <summary>
<t><t>/// Returns all {6}.
<t><t>/// </summary>
<t><t>public static ObjectSet<{6}> FindAll()
<t><t>{5}
<t><t><t>ObjectSearcher<{6}> searcher = new ObjectSearcher<{6}>({8});;

<t><t><t>return searcher.FindAll();
<t><t>{9}

<t><t>/// <summary>
<t><t>/// Returns all {6} sorted by the sort argument.
<t><t>/// </summary>
<t><t>/// <param name="sort">The comma delimited list of fields composing the sort-key.</param>
<t><t>public static ObjectSet<{6}> FindAllSortedBy(string sort)
<t><t>{5}
<t><t><t>ObjectQuery<{6}> oQuery = new ObjectQuery<{6}>("SortBy " + sort);

<t><t><t>return {8}.GetObjectSet<{6}>(oQuery);
<t><t>{9}
{7}
<t>{9}
{9}]]>
</staticseacher>

<comment>
<![CDATA[<t><t>/// <param name="{0}">{1}</param>
]]>
</comment>

<firstquerymethod>
<![CDATA[<t><t><t>string query = "{0} {1} {2}{3}{4}";
]]>
</firstquerymethod>
<querymethod>
<![CDATA[<t><t><t>query += "AND {0} {1} {2}{3}{4}";
]]>
</querymethod>

<derivedfindby>
<![CDATA[
<t><t>/// <summary>
<t><t>/// Returns {0} filtered by key.
<t><t>/// </summary>
{6}<t><t>public {1} {2}({3})
<t><t>{4}
<t><t><t>// Build the query.
{8}

<t><t><t>// Create an object query and specify the query.
<t><t><t>ObjectQuery<{0}> oQuery = new ObjectQuery<{0}>(query{7});

<t><t><t>return Context.Get{9}(oQuery);
<t><t>{5}
]]>
</derivedfindby>

<derivedseacher>
<![CDATA[#region Developer's comment header
/* {0}.cs
 * 
 * author:    {1}
 * copyright: {2}
 * 
 * history:   {3}, {1}: Created.
 *
 */
#endregion
#region Using directives

using System;
using System.Collections.Generic;
using System.Text;
using Chili.Opf3;
using Chili.Opf3.Query;

{11}
#endregion

namespace {4}
{5}
<t>/// <summary>
<t>/// Searcher object for the "{6}" persistent.
<t>/// </summary>
<t>public partial class {0} : {10}
<t>{5}
<t><t>/// <summary>
<t><t>/// Creates an instance of the {0} Class.
<t><t>/// </summary>
<t><t>/// <param name="context">The ObjectContext instance associated with the searcher.</param>
<t><t>public {0}(ObjectContext context) : base(context)
<t><t>{5}
<t><t>{9}

<t><t>/// <summary>
<t><t>/// Returns all {6} sorted by the sort argument.
<t><t>/// </summary>
<t><t>/// <param name="sort">The comma delimited list of fields composing the sort-key.</param>
<t><t>public ObjectSet<{6}> FindAllSortedBy(string sort)
<t><t>{5}
<t><t><t>return base.FindAll("SortBy " + sort);
<t><t>{9}
{8}
<t>{9}
{9}]]>
  </derivedseacher>
	
</templates>